package org.edu.modules.resource.file.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;

@TableName("ve_file_files")
@ApiModel(value="ve_file_files对象", description="ve_file_files")
public class VeFileFiles
        implements Serializable
{
    private static final long serialVersionUID = 1L;
    @TableId(type=IdType.ASSIGN_ID)
    @ApiModelProperty("文件ID")
    private Integer id;
    @ApiModelProperty("原始文件名")
    private String name;
    @ApiModelProperty("源文件")
    private String sourcefile;
    @ApiModelProperty("中间文件")
    private String tempfile;
    @ApiModelProperty("浏览文件")
    private String destfile;
    @ApiModelProperty("预览文件")
    private String prefile;
    @ApiModelProperty("html格式文件")
    private String htmlfile;
    @ApiModelProperty("封面文件")
    private String coverfile;
    @ApiModelProperty("文件后缀")
    private String ext;
    @ApiModelProperty("状态：-1=不需要转换，0=待转换，1=转换成功，2=转换失败,3=正在转换，9=临时文件")
    private Integer status;
    @ApiModelProperty("文件mime类型")
    private String mime;
    @ApiModelProperty("文件大小")
    private Integer size;
    @ApiModelProperty("视频长度/文档页码")
    private Integer length;
    @ApiModelProperty("文件md5")
    private String md5;
    @ApiModelProperty("文件 sha1编码")
    private String sha1;
    @ApiModelProperty("上传时间")
    private Integer createtime;
    @ApiModelProperty("失败代码")
    private String error;
    @ApiModelProperty("上传用户ID")
    private Integer createuser;
    @ApiModelProperty("photo")
    private String photo;
    @ApiModelProperty("多租户id")
    private Integer placeId;

    public VeFileFiles setSourcefile(String sourcefile)
    {
        this.sourcefile = sourcefile;return this;
    }

    public VeFileFiles setName(String name)
    {
        this.name = name;return this;
    }

    public VeFileFiles setId(Integer id)
    {
        this.id = id;return this;
    }

    public String toString()
    {
        return "VeFileFiles(id=" + getId() + ", name=" + getName() + ", sourcefile=" + getSourcefile() + ", tempfile=" + getTempfile() + ", destfile=" + getDestfile() + ", prefile=" + getPrefile() + ", htmlfile=" + getHtmlfile() + ", coverfile=" + getCoverfile() + ", ext=" + getExt() + ", status=" + getStatus() + ", mime=" + getMime() + ", size=" + getSize() + ", length=" + getLength() + ", md5=" + getMd5() + ", sha1=" + getSha1() + ", createtime=" + getCreatetime() + ", error=" + getError() + ", createuser=" + getCreateuser() + ", photo=" + getPhoto() + ", placeId=" + getPlaceId() + ")";
    }

    public VeFileFiles setPlaceId(Integer placeId)
    {
        this.placeId = placeId;return this;
    }

    public VeFileFiles setPhoto(String photo)
    {
        this.photo = photo;return this;
    }

    public VeFileFiles setCreateuser(Integer createuser)
    {
        this.createuser = createuser;return this;
    }

    public VeFileFiles setError(String error)
    {
        this.error = error;return this;
    }

    public VeFileFiles setCreatetime(Integer createtime)
    {
        this.createtime = createtime;return this;
    }

    public VeFileFiles setSha1(String sha1)
    {
        this.sha1 = sha1;return this;
    }

    public VeFileFiles setMd5(String md5)
    {
        this.md5 = md5;return this;
    }

    public VeFileFiles setLength(Integer length)
    {
        this.length = length;return this;
    }

    public VeFileFiles setSize(Integer size)
    {
        this.size = size;return this;
    }

    public VeFileFiles setMime(String mime)
    {
        this.mime = mime;return this;
    }

    public VeFileFiles setStatus(Integer status)
    {
        this.status = status;return this;
    }

    public VeFileFiles setExt(String ext)
    {
        this.ext = ext;return this;
    }

    public VeFileFiles setCoverfile(String coverfile)
    {
        this.coverfile = coverfile;return this;
    }

    public VeFileFiles setHtmlfile(String htmlfile)
    {
        this.htmlfile = htmlfile;return this;
    }

    public VeFileFiles setPrefile(String prefile)
    {
        this.prefile = prefile;return this;
    }

    public VeFileFiles setDestfile(String destfile)
    {
        this.destfile = destfile;return this;
    }

    public VeFileFiles setTempfile(String tempfile)
    {
        this.tempfile = tempfile;return this;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $id = getId();result = result * 59 + ($id == null ? 43 : $id.hashCode());Object $status = getStatus();result = result * 59 + ($status == null ? 43 : $status.hashCode());Object $size = getSize();result = result * 59 + ($size == null ? 43 : $size.hashCode());Object $length = getLength();result = result * 59 + ($length == null ? 43 : $length.hashCode());Object $createtime = getCreatetime();result = result * 59 + ($createtime == null ? 43 : $createtime.hashCode());Object $createuser = getCreateuser();result = result * 59 + ($createuser == null ? 43 : $createuser.hashCode());Object $placeId = getPlaceId();result = result * 59 + ($placeId == null ? 43 : $placeId.hashCode());Object $name = getName();result = result * 59 + ($name == null ? 43 : $name.hashCode());Object $sourcefile = getSourcefile();result = result * 59 + ($sourcefile == null ? 43 : $sourcefile.hashCode());Object $tempfile = getTempfile();result = result * 59 + ($tempfile == null ? 43 : $tempfile.hashCode());Object $destfile = getDestfile();result = result * 59 + ($destfile == null ? 43 : $destfile.hashCode());Object $prefile = getPrefile();result = result * 59 + ($prefile == null ? 43 : $prefile.hashCode());Object $htmlfile = getHtmlfile();result = result * 59 + ($htmlfile == null ? 43 : $htmlfile.hashCode());Object $coverfile = getCoverfile();result = result * 59 + ($coverfile == null ? 43 : $coverfile.hashCode());Object $ext = getExt();result = result * 59 + ($ext == null ? 43 : $ext.hashCode());Object $mime = getMime();result = result * 59 + ($mime == null ? 43 : $mime.hashCode());Object $md5 = getMd5();result = result * 59 + ($md5 == null ? 43 : $md5.hashCode());Object $sha1 = getSha1();result = result * 59 + ($sha1 == null ? 43 : $sha1.hashCode());Object $error = getError();result = result * 59 + ($error == null ? 43 : $error.hashCode());Object $photo = getPhoto();result = result * 59 + ($photo == null ? 43 : $photo.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof VeFileFiles;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof VeFileFiles)) {
            return false;
        }
        VeFileFiles other = (VeFileFiles)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$id = getId();Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        Object this$status = getStatus();Object other$status = other.getStatus();
        if (this$status == null ? other$status != null : !this$status.equals(other$status)) {
            return false;
        }
        Object this$size = getSize();Object other$size = other.getSize();
        if (this$size == null ? other$size != null : !this$size.equals(other$size)) {
            return false;
        }
        Object this$length = getLength();Object other$length = other.getLength();
        if (this$length == null ? other$length != null : !this$length.equals(other$length)) {
            return false;
        }
        Object this$createtime = getCreatetime();Object other$createtime = other.getCreatetime();
        if (this$createtime == null ? other$createtime != null : !this$createtime.equals(other$createtime)) {
            return false;
        }
        Object this$createuser = getCreateuser();Object other$createuser = other.getCreateuser();
        if (this$createuser == null ? other$createuser != null : !this$createuser.equals(other$createuser)) {
            return false;
        }
        Object this$placeId = getPlaceId();Object other$placeId = other.getPlaceId();
        if (this$placeId == null ? other$placeId != null : !this$placeId.equals(other$placeId)) {
            return false;
        }
        Object this$name = getName();Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) {
            return false;
        }
        Object this$sourcefile = getSourcefile();Object other$sourcefile = other.getSourcefile();
        if (this$sourcefile == null ? other$sourcefile != null : !this$sourcefile.equals(other$sourcefile)) {
            return false;
        }
        Object this$tempfile = getTempfile();Object other$tempfile = other.getTempfile();
        if (this$tempfile == null ? other$tempfile != null : !this$tempfile.equals(other$tempfile)) {
            return false;
        }
        Object this$destfile = getDestfile();Object other$destfile = other.getDestfile();
        if (this$destfile == null ? other$destfile != null : !this$destfile.equals(other$destfile)) {
            return false;
        }
        Object this$prefile = getPrefile();Object other$prefile = other.getPrefile();
        if (this$prefile == null ? other$prefile != null : !this$prefile.equals(other$prefile)) {
            return false;
        }
        Object this$htmlfile = getHtmlfile();Object other$htmlfile = other.getHtmlfile();
        if (this$htmlfile == null ? other$htmlfile != null : !this$htmlfile.equals(other$htmlfile)) {
            return false;
        }
        Object this$coverfile = getCoverfile();Object other$coverfile = other.getCoverfile();
        if (this$coverfile == null ? other$coverfile != null : !this$coverfile.equals(other$coverfile)) {
            return false;
        }
        Object this$ext = getExt();Object other$ext = other.getExt();
        if (this$ext == null ? other$ext != null : !this$ext.equals(other$ext)) {
            return false;
        }
        Object this$mime = getMime();Object other$mime = other.getMime();
        if (this$mime == null ? other$mime != null : !this$mime.equals(other$mime)) {
            return false;
        }
        Object this$md5 = getMd5();Object other$md5 = other.getMd5();
        if (this$md5 == null ? other$md5 != null : !this$md5.equals(other$md5)) {
            return false;
        }
        Object this$sha1 = getSha1();Object other$sha1 = other.getSha1();
        if (this$sha1 == null ? other$sha1 != null : !this$sha1.equals(other$sha1)) {
            return false;
        }
        Object this$error = getError();Object other$error = other.getError();
        if (this$error == null ? other$error != null : !this$error.equals(other$error)) {
            return false;
        }
        Object this$photo = getPhoto();Object other$photo = other.getPhoto();return this$photo == null ? other$photo == null : this$photo.equals(other$photo);
    }

    public Integer getId()
    {
        return this.id;
    }

    public String getName()
    {
        return this.name;
    }

    public String getSourcefile()
    {
        return this.sourcefile;
    }

    public String getTempfile()
    {
        return this.tempfile;
    }

    public String getDestfile()
    {
        return this.destfile;
    }

    public String getPrefile()
    {
        return this.prefile;
    }

    public String getHtmlfile()
    {
        return this.htmlfile;
    }

    public String getCoverfile()
    {
        return this.coverfile;
    }

    public String getExt()
    {
        return this.ext;
    }

    public Integer getStatus()
    {
        return this.status;
    }

    public String getMime()
    {
        return this.mime;
    }

    public Integer getSize()
    {
        return this.size;
    }

    public Integer getLength()
    {
        return this.length;
    }

    public String getMd5()
    {
        return this.md5;
    }

    public String getSha1()
    {
        return this.sha1;
    }

    public Integer getCreatetime()
    {
        return this.createtime;
    }

    public String getError()
    {
        return this.error;
    }

    public Integer getCreateuser()
    {
        return this.createuser;
    }

    public String getPhoto()
    {
        return this.photo;
    }

    public Integer getPlaceId()
    {
        return this.placeId;
    }
}
